﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ClearDir
{
    public partial class ClearTool_Form : Form
    {
        public ClearTool_Form()
        {
            InitializeComponent();
        }

        private void Form_DragDrop(object sender, DragEventArgs e)
        {
            String[] files = DragDropTool.Form_DragDrop(sender, e);
            foreach (string file in files) ClearTool.ClearDelet(file);
            if (Program.autoDelet) DependentFiles.deletCurExe();    

            MessageBox.Show("文件已清空!");
        }

        private void Form_DragEnter(object sender, DragEventArgs e)
        {
            DragDropTool.Form_DragEnter(sender, e);
        }
    }
}
